package director;

import structural.decorator.*;

public class DecoratorDirector {
    public static void main(String[] args){
        //获取初始策略
        AbstractFanalysisStrategy chainStrategy = new ChainStrategy();
        //进行包装
        AbstractFanalysisStrategy decorated =
                new RootCloudDecorator(
                        new RedisDecorator(
                        new EdgeDecorator(chainStrategy)
                ))
                ;
        decorated.persist();
    }
}
